package com.lzh.shijicloudstack.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzh.shijicloudstack.common.R;
import com.lzh.shijicloudstack.model.dto.role.RolePageDto;
import com.lzh.shijicloudstack.model.entity.Role;

import java.util.Map;


/**
 * 菜单权限表(SysRole)表服务接口
 *
 * @author luzhiheng
 * @since 2023-12-28 16:14:28
 */
public interface RoleService extends IService<Role> {

    /**
     * 分页查询
     *
     * @param dto RolePageDto
     * @return Map<String, Object>
     */
    Map<String, Object> pageList(RolePageDto dto);

    /**
     * 删除
     *
     * @param id Long
     * @return R<Boolean>
     */
    R<Boolean> delete(Long id);

    /**
     * 更新
     *
     * @return Boolean
     */
    Boolean updateRole(Role role);
}

